package com.exchange.interfaces.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.exchange.interfaces.mapper.ExchangeLogMapper;
import com.exchange.interfaces.domain.ExchangeLog;
import com.exchange.interfaces.service.IExchangeLogService;
import com.exchange.common.core.text.Convert;

/**
 * 数据交换_日志 服务层实现
 * 
 * @author exchange
 * @date 2019-06-03
 */
@Service
public class ExchangeLogServiceImpl implements IExchangeLogService 
{
	@Autowired
	private ExchangeLogMapper exchangeLogMapper;

	/**
     * 查询数据交换_日志信息
     * 
     * @param id 数据交换_日志ID
     * @return 数据交换_日志信息
     */
    @Override
	public ExchangeLog selectExchangeLogById(Long id)
	{
	    return exchangeLogMapper.selectExchangeLogById(id);
	}
	
	/**
     * 查询数据交换_日志列表
     * 
     * @param exchangeLog 数据交换_日志信息
     * @return 数据交换_日志集合
     */
	@Override
	public List<ExchangeLog> selectExchangeLogList(ExchangeLog exchangeLog)
	{
	    return exchangeLogMapper.selectExchangeLogList(exchangeLog);
	}
	
    /**
     * 新增数据交换_日志
     * 
     * @param exchangeLog 数据交换_日志信息
     * @return 结果
     */
	@Override
	public int insertExchangeLog(ExchangeLog exchangeLog)
	{
	    return exchangeLogMapper.insertExchangeLog(exchangeLog);
	}
	
	/**
     * 修改数据交换_日志
     * 
     * @param exchangeLog 数据交换_日志信息
     * @return 结果
     */
	@Override
	public int updateExchangeLog(ExchangeLog exchangeLog)
	{
	    return exchangeLogMapper.updateExchangeLog(exchangeLog);
	}

	/**
     * 删除数据交换_日志对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteExchangeLogByIds(String ids)
	{
		return exchangeLogMapper.deleteExchangeLogByIds(Convert.toStrArray(ids));
	}
	
}
